package com.yiyuzi.admin.privilege.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yiyuzi.admin.privilege.domain.dto.PrivilegeTreeDTO;
import com.yiyuzi.admin.privilege.domain.entity.PrivilegeEntity;

import java.util.List;

/**
 * @author yiyuzi
 * @date 2021/5/7 11:20
 */

public interface PrivilegeService extends IService<PrivilegeEntity> {

    PrivilegeEntity findByPath(String path);

    boolean removeNotInIds(List<Long> idList);

    PrivilegeTreeDTO listToTree();
}
